package com.heima.apis.behavior;

import com.heima.model.behavior.dtos.UnLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "不喜欢行为", tags = "不喜欢行为", description = "不喜欢行为API")
public interface ApUnlikesBehaviorControllerApi {

    /**
     * 保存或更新不喜欢行为
     *
     * @return
     */
    @ApiOperation("不喜欢行为")
    public ResponseResult unlikesBehavior(UnLikesBehaviorDto dto);

    /**
     * 根据行为实体id和文章id查询不喜欢行为
     *
     * @param entryId
     * @param articleId
     * @return
     */
    @ApiOperation("查询不喜欢行为")
    public Integer findUnLikeByArticleIdAndEntryId(Integer entryId, Long articleId, Short type);
}
